﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using Sita.Entities.MetaData.CustomAttributes;

namespace Sita.Entities.MetaData
{
    public class Employee
    {
        [ScaffoldColumn(false)]
        public object EmployeeID { get; set; }

        [ScaffoldColumn(false)]
        public object BusinessUnitID { get; set; }

        [Required(ErrorMessageResourceType = typeof(Resources.Employee), ErrorMessageResourceName = "FirstNameRequired")]
        [LocalizedDisplayName("FirstName", ResourceType = typeof(Resources.Employee))]
        [StringLength(50, ErrorMessageResourceType = typeof(Resources.Employee), ErrorMessageResourceName = "FirstNameMaxLength")]
        [DataType(DataType.Text)]
        public object FirstName { get; set; }

        [LocalizedDisplayName("LastName", ResourceType = typeof(Resources.Employee))]
        [StringLength(50, ErrorMessageResourceType = typeof(Resources.Employee), ErrorMessageResourceName = "LastNameMaxLength")]
        [DataType(DataType.Text)]
        public object LastName { get; set; }

        [LocalizedDisplayName("Email", ResourceType = typeof(Resources.Employee))]
        [StringLength(50, ErrorMessageResourceType = typeof(Resources.Employee), ErrorMessageResourceName = "EmailMaxLength")]
        [DataType(DataType.Text)]
        public object Email { get; set; }

        [LocalizedDisplayName("Email", ResourceType = typeof(Resources.Employee))]
        [StringLength(50, ErrorMessageResourceType = typeof(Resources.Employee), ErrorMessageResourceName = "EmailMaxLength")]
        [DataType(DataType.Text)]
        public object Email2 { get; set; }

        [LocalizedDisplayName("Phone", ResourceType = typeof(Resources.Employee))]
        [StringLength(50, ErrorMessageResourceType = typeof(Resources.Employee), ErrorMessageResourceName = "PhoneMaxLength")]
        [DataType(DataType.Text)]
        public object Phone { get; set; }

        [LocalizedDisplayName("Phone", ResourceType = typeof(Resources.Employee))]
        [StringLength(50, ErrorMessageResourceType = typeof(Resources.Employee), ErrorMessageResourceName = "PhoneMaxLength")]
        [DataType(DataType.Text)]
        public object Phone2 { get; set; }

        [LocalizedDisplayName("Address", ResourceType = typeof(Resources.Employee))]
        [StringLength(50, ErrorMessageResourceType = typeof(Resources.Employee), ErrorMessageResourceName = "AddressMaxLength")]
        [DataType(DataType.Text)]
        public object Address { get; set; }
    }
}
